package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.common.core.domain.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 项目预算分项总表
 * </p>
 * @author WuZH
 * @since 2024-05-14
 */
@Getter
@Setter
@TableName ("erp_project_budget_info")
@ApiModel (value = "项目预算分项总表", description = "项目预算分项总表")
public class ProjectBudgetEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ("id")
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty ("项目Id")
    @TableField ("project_id")
    private String projectId;

    @ApiModelProperty ("项目预算类型;1:材料预算;2:分包预算;3:人工预算;4:机具预算;5:费用预算")
    @TableField ("type")
    private Integer type;

    @ApiModelProperty ("分项首次预算成本,首次新增各项成本时记录该值")
    @TableField ("frist_budget_money")
    private String fristBudgetMoney;

    @ApiModelProperty ("分项最新预算成本,非首次新增/修改各项成本时更新该值")
    @TableField ("now_budget_money")
    private String nowBudgetMoney;

    @ApiModelProperty ("备注")
    @TableField ("remarks")
    private String remarks;

    @ApiModelProperty ("创建人Id")
    @TableField ("user_id")
    private String userId;

    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    private Date createTime;

    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    private Date changeTime;

    @TableField ("is_used")
    private Integer isUsed;


}
